﻿using System;
using System.Collections.Generic;

using System.Text;
using Model.Enum;

namespace Model
{
    [Serializable]
    public class TextValuePair
    {
        private string _text;

        public string Text
        {
            get { return _text; }
            set { _text = value; }
        }

        private string _value;

        public string Value
        {
            get { return _value; }
            set { _value = value; }
        }

        public TextValuePair(string _text, string _value)
        {
            this._text = _text;
            this._value = _value;
        }

        public override string ToString()
        {
            return this._text;
        }

        private PsDataType _dataType;

        /// <summary>
        /// 2011-1-13 加入 ，为了适应高级查询
        /// </summary>
        public PsDataType DataType
        {
            get { return _dataType; }
            set { _dataType = value; }
        }

        public TextValuePair(string _text, string _value, PsDataType _dp)
        {
            this._text = _text;
            this._value = _value;
            this._dataType = _dp;
        }

        private string _otherName;

        /// <summary>
        /// 2011-1-16 加入 ，为了适应高级查询
        /// </summary>
        public string OtherName
        {
            get { return _otherName; }
            set { _otherName = value; }
        }
    }
}
